Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632698 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner

style.css cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner/style.css
111 Views
0 Comments
:root {
--background-light-color: #57ebd7;
--background-dark-color: #24a88b;
--main-background-gradient: linear-gradient(to right, var(--background-light-color) 0%, var(--background-dark-color) 100%);
}


body{
index.html cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner/index.html
298 Views
0 Comments
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Block Runner game</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
script.js cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner/script.js
169 Views
0 Comments
var i = 0;

function random( min, max ) {
return Math.round( min + ( Math.random() * ( max - min ) ) );
}

function randomChoice(array){
return array[ Math.round( random( 0, array.length - 1 ) ) ];
preview.jpg cody/swapnilsparsh/30DaysOfJavaScript/136 - Block Runner/preview.jpg
70 Views
0 Comments
Media file